'use strict';

var userModel = require('../../config/models').userModel,
  roleModel = require('../../config/models').roleModel,
  menuModel = require('../../config/models').menuModel,
  operatorModel = require('../../config/models').operatorModel;

var users = require('./user'),
  menus = require('./menu'),
  roles = require('./role'),
  operators = require('./operator');

operatorModel.create(operators, function(err, doc) {
  if (err) {
    console.log(err);
  } else {
    console.log(doc);
  }
});
menuModel.create(menus, function(err, doc) {
  if (err) {
    console.log(err);
  } else {
    console.log(doc);
  }
});
roleModel.create(roles, function(err, doc) {
  if (err) {
    console.log(err);
  } else {
    console.log(doc);
  }
});
userModel.create(users, function(err, doc) {
  if (err) {
    console.log(err);
  } else {
    console.log(doc);
  }
});
